package com.casic.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.casic.entity.IotIot;

/**
 * 网关DAO
 */
@Mapper
public interface IotIotDao {
	
	List<Map<String,Object>> selectInfoByAccesskey(String accesskey);

	List<Map<String,Object>> selectIotInfoByAccesskey(String accesskey);
	
	/**
	 * 
	 * 功能描述:根据iot获取orgId 
	 * 
	 * @return Long
	 * @version 1.0.0
	 * @author wenpeng
	 */
	Long selectInfoByIot(Long iotId);
	
    int deleteByPrimaryKey(Long iotid);

    int insert(IotIot record);

    int insertSelective(IotIot record);

    IotIot selectByPrimaryKey(Long iotid);

    int updateByPrimaryKeySelective(IotIot record);

    int updateByPrimaryKey(IotIot record);
}